package com.xiezc.springboot_dht.message;

import lombok.Getter;

/**
 * @author wb-xzc291800
 * @date 2018/05/11 15:12
 */
public enum MsgTypeEnum {

    /**
     * ping
     */
    ping("ping"),
    /**
     * find_node
     */
    findNode("find_node"),
    /**
     * get_peers
     */
    getPeers("get_peers"),
    /**
     * annountce_peer
     */
    annountcePeer("annountce_peer"),
    /**
     * resp_ping 和annountce的效应消息
     */
    resp_ping("resp_ping"),
    /**
     * resp_findNode
     */
    resp_findNode("resp_findNode"),
    /**
     * resp_getPeers
     */
    resp_getPeers("resp_getPeers"),

    resp_getPeersVal("resp_getPeers_val");

    @Getter
    private String val;

    MsgTypeEnum(String val) {
        this.val = val;
    }

}
